<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
<head>
	<script type="text/javascript" src="lib/freebox-link/JSDriver.js"></script>
	<script type="text/javascript" src="lib/freebox-link/JSDriver.PrototypeOldIE.js"></script>
	<script type="text/javascript">
		Element.prototype.selectTest = function() {
			console.log("select");
		};
	</script>
</head>
<body>
	<input type="hidden" id="truc"/>
	<script type="text/javascript">
		var d = document.getElementById("truc");
		if (typeof(d.selectTest) == "function") {
			if (window.overridenPrototype) {
				alert("Works great ! (with fix)");
			} else {
				alert("Works great !");
			}
		} else {
			alert("Don't work");
		}
	</script>
</body>
</html>